package com.rec.smile.ui;

import java.awt.Color;
import java.awt.Graphics;

import com.rec.smile.ImageUtil;

public class Tower extends Actor{

	public Tower(int x, int y) {
		super(x, y);
		pic = ImageUtil.towerImage;
	}

	@Override
	public void draw(Graphics g) {
		g.drawImage(pic, x, y, null);
		g.setColor(Color.GREEN);
		g.fillRect(x, y-5, pic.getWidth(null) , 5);
		g.setColor(Color.red);
		if(hurt > 0){
			g.drawString(""+hurt, x, y-10);
			hurt = 0;
		}
		g.fillRect(x, y-5, (int)(pic.getWidth(null) * (1 - 1.0f * hp/orihp)), 5);
	}

	@Override
	public void walk() {
	}

	@Override
	protected void stopWalking() {
	}

	
}
